#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

void merge(int* A, int ASize, int m, int* B, int BSize, int n);

int main()
{
	return 0;
}

void merge(int* A, int ASize, int m, int* B, int BSize, int n)
{
	printf("ASize:%d\tm:%d\tBSize:%d\tn:%d\n", ASize, m, BSize, n);
	size_t size = ASize; int iB = n - 1;

	for (int iA = m - 1; iA >= 0 && iB >= 0;) {
		int sub = A[iA] - B[iB];
		if (sub > 0)
			A[--size] = A[iA--];
		else
			A[--size] = B[iB--];
	}

	while (iB >= 0)
		A[--size] = B[iB--];
}
